package com.example;

public class TrainStationTicketServiceImpl implements TicketService{

    @Override
    public Ticket buyTicket(String from, String to, String time, String passenger) {
        Ticket ticket = new Ticket();
        ticket.setFrom(from);
        ticket.setTo(to);
        ticket.setTime(time);
        ticket.setPassenger(passenger);
        return ticket;
    }
}
